package com.example.demokotlin

import java.util.Scanner

/**
 * 测试输入
 *
 * @author zhouronghua
 * @time 2022/3/6 9:14 下午
 */

fun main(args: Array<String>) {
// Creates an instance which takes input from standard input (keyboard)
    val reader = Scanner(System.`in`)
    print("Enter a number: ")
// nextInt() reads the next integer from the keyboard
    var integer: Int = reader.nextInt()
    println("You entered: $integer")
}